n = int(input())
ans = 0
for i in range(1, n + 1):
    for j in range(1, n + 1):
        for k in range(1, n + 1):
            if i > j or i > k or j > k:
                continue
            if i * j * k <= n:
                ans += 1

print(ans)